Property if your class supports multiple concurrent invocations 如果您的類支持多個(gè)并發(fā)調(diào)用,則不要公開(kāi)
If your class does not support multiple concurrent invocations , consider exposing an 如果類不支持多個(gè)并發(fā)調(diào)用,請(qǐng)考慮公開(kāi)
Property because they support multiple concurrent invocations of asynchronous methods 屬性,因?yàn)樗鼈冎С之惒椒椒ǖ亩鄠€(gè)并發(fā)調(diào)用。
Do this if you re prepared to manage multiple concurrent invocations of your method , in which case the 如果您準(zhǔn)備管理方法的多個(gè)并發(fā)調(diào)用,可進(jìn)行此操作,在這種情況下,
Method without the state parameter , and it does not support multiple concurrent invocations , ensure that any attempt to invoke 方法時(shí)不使用該狀態(tài)參數(shù),而且它不支持多個(gè)并發(fā)調(diào)用,則請(qǐng)確保在早先的
If your class supports multiple concurrent invocations , enable the developer to track each invocation separately by defining the 如果類支持多個(gè)并發(fā)調(diào)用,則可讓開(kāi)發(fā)人員通過(guò)定義帶有對(duì)象賦值狀態(tài)參數(shù)或任務(wù)id (名為
If you don ' t see concurrent invocations in a server , it is likely that the server is running with a thread pool containing only a single thread , thereby serializing all incoming invocations 你不會(huì)看到在服務(wù)端進(jìn)行的并發(fā)調(diào)用,就像服務(wù)端的線程池只運(yùn)行著一個(gè)線程,串行化的處理著所有請(qǐng)求。
An asynchronous method may also support multiple pending calls multiple concurrent invocations , allowing your code to call it any number of times before it completes other pending operations 異步方法可能還支持多個(gè)掛起的調(diào)用多個(gè)并發(fā)調(diào)用,允許您的代碼在此方法完成其他掛起的操作之前調(diào)用此方法任意多次。
For a component that supports multiple concurrent invocations of its asynchronous methods , the client can supply a unique token , or task id , to distinguish which asynchronous task is raising particular events 對(duì)于支持多次并發(fā)調(diào)用其異步方法的組件,客戶端可以提供一個(gè)唯一的標(biāo)記或任務(wù)id ,以區(qū)分引發(fā)特殊事件的異步任務(wù)。